<?php

class Rule_Captcha_Recaptcha extends Rule_Abstract
{

	protected $_config = array('msg' => 'Captcha failed. Please try again.');

	public function isValid($value, $params = null)
	{
		$obj = new Captcha_Adapter_Recaptcha();
		return $obj -> recaptcha_check_answer();
	}

}
